This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
"The trick to the size of a text item is the IsSummary property. If false, the NotesItem can be up to 64K. If true, only 32KB. Read the help docs for other implications of setting it to false."
Thanks for the info! I was not aware of this. Out of curiosity, how do you know this? I couldn't find it referenced anywhere in the help.
"You can test for the size of the item with the ValueLength property (rather than waiting for the client to throw an error)."
ValueLength is only useful if your data actually fits and you've already written it to the item - I need to know ahead of time if my data will fit, so I can trim it if necessary. Unsure of how to try and count bytes (in my testing, Notes uses variable encoding for text data stored in a field, and I'm not sure how to predict what encoding will be used), the only way I could think of to figure out if the data would fit was to just keep adding values until I ran out of values or raised an error.
Feedback response number WEBB82MHC9 created by ~Dean Dwoboosiplopjip on 02/13/2010